/*
 * @Autor: dingxiaolin
 * @Date: 2022-09-28 16:29:42
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2022-10-17 10:37:12
 */
import request from '@/common/requestv2.js'

// 登錄

export function login(params) {
  return request({
    url: '/app-admin/dnl/auth/token',
    method: 'post',
    data: params
  })
}

// 获取船舶列表

export function getShipList(params) {
  return request({
    url: '/app-shipping/openapi-app/getShippingDropdown',
    method: 'post',
    data: params
  })
}
/** 获取预警类型 */
export function getAlarmType(params) {
  return request({
    url: '/app-shipping/openapi-app/alarmTypeList',
    method: 'post',
    data: params
  })
}

/**
 * 预警事件列表
 */
export function getAlarmList(params) {
  return request({
    url: '/app-shipping/openapi-app/alarmList',
    method: 'post',
    data: params
  })
}

/**
 * 获取未读数量
 */
export function getUnReadNum(params) {
  return request({
    url: '/app-shipping/openapi-app/shipAlarmUnread',
    method: 'post',
    data: params
  })
}

/** 获取船舶视频 */
export function getShipVideo(params) {
  return request({
    url: '/app-shipping/openapi-app/shipMonitors',
    method: 'post',
    data: params
  })
}

/** 获取预警详情 */
export function getAlarmDetail(params) {
  return request({
    url: '/app-shipping/openapi-app/alarmDetail',
    method: 'post',
    data: params
  })
}

/** 处理预警 */
export function savaAlarmStatus(params) {
  return request({
    url: '/app-shipping/openapi-app/dealAlarm',
    method: 'post',
    data: params
  })
}

/** 获取岸基视频 */
export function getShoreVideoList(params) {
  return request({
    url: '/app-shipping/openapi-app/shoreMonitors',
    method: 'post',
    data: params
  })
}

/** 清空未读预警数量 */
export function setClearUnReadNum(params) {
  return request({
    url: '/app-shipping/openapi-app/deleteNoRead',
    method: 'post',
    data: params
  })
}

/** 获取小时制度 */
export function getHourType(params) {
  return request({
    url: '/app-shipping/openapi-app/useHour',
    method: 'post',
    data: params
  })
}
/** 获取24小时排班列表 */
export function get24PlanList(params) {
  return request({
    url: '/app-shipping/openapi-app/planList',
    method: 'post',
    data: params
  })
}
/** 获取12小时排班列表 */
export function get12PlanList(params) {
  return request({
    url: '/app-shipping/openapi-app/halfDayPlanList',
    method: 'post',
    data: params
  })
}
/** 通讯录列表 */
export function getMailList(params) {
  return request({
    url: '/app-shipping/openapi-app/mailList',
    method: 'post',
    data: params
  })
}